package com.example.infinitecards;

import com.bakerj.infinitecards.transformer.LinearInterpolator;
import junit.framework.TestCase;
import org.junit.Assert;

/**
 * LinearInterpolatorTestCase
 *
 * @author BakerJ
 * @since : 2021.5.24
 */
public class LinearInterpolatorTestCase extends TestCase {
    /**
     * testLinearInterpolator
     */
    public void testLinearInterpolator() {
        float test = 0.5f;
        LinearInterpolator linearInterpolator = new LinearInterpolator();
        float result = linearInterpolator.getInterpolation(test);
        Assert.assertNotNull(result);
        Assert.assertEquals(String.valueOf(result), "0.5");
    }
}
